package com.young.statemachine.controller;

import com.young.statemachine.service.WorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: StateMachineController
 * @author: Young
 * @date: 2025/1/15 23:48
 * @Version: 1.0
 * @description:
 */
@RestController
@RequestMapping
public class StateMachineController {

    @Autowired
    public WorkService workService;

    @GetMapping("/testReached")
    public String testReached(){
        workService.reached("123123");
        return "success";
    }
}
